package cn.itcast.pattern.proxy.static_proxy1;

public class Test {
    public static void main(String[] args) {

        UserServiceCGlib userServiceCGlib = new UserServiceCGlib(new UserServiceImpl());
        UserServiceImpl proxyInstance = (UserServiceImpl) userServiceCGlib.getProxyInstance();

        proxyInstance.addUser();
        System.out.println();
        proxyInstance.deleteUser();

    }

}
